import request from '@/router/axios'

export function fetchWxArticleList(query) {
  return request({
    url: '/mp/wxarticle/page',
    method: 'get',
    params: query
  })
}

export function addWxArticleObj(obj) {
  return request({
    url: '/mp/wxarticle',
    method: 'post',
    data: obj
  })
}

export function getWxArticleObj(id) {
  return request({
    url: '/mp/wxarticle/' + id,
    method: 'get'
  })
}

export function delWxArticleObj(id) {
  return request({
    url: '/mp/wxarticle/' + id,
    method: 'delete'
  })
}

export function putWxArticleObj(obj) {
  return request({
    url: '/mp/wxarticle',
    method: 'put',
    data: obj
  })
}
